<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>Editar Dados Funcionario</title>
</h:head>
<h:body>
<ui:include src="/painel.xhtml"></ui:include>
<h:form id="formEditar">
	<h:inputHidden id="idfuncionario" value="#{funcMB.funcionario.idFuncionario}" />
		<p:panel header="Editando Dados Funcionário">
			<h:panelGrid  columns="2">
				<h:outputText value="Nome:" />
				<p:inputText value="#{funcMB.funcionario.nome}" />
				<h:outputText value="Salario:" />
				<p:inputText value="#{funcMB.funcionario.salario}" />
				<h:outputText value="Login:" />
				<p:inputText value="#{funcMB.usuario.login}" />
				<h:outputText value="Senha:" />
				<p:inputText value="#{funcMB.usuario.senha}" />
			</h:panelGrid>
			<h:commandButton  value="Editar"
				action="#{funcMB.editar}" />
		</p:panel>
	</h:form>
</h:body>
</html>